This paper considers the absorption of a non-decreasing compound Poisson process of finite order in a general upper boundary. The problem is relevant in fields such as risk theory, Kolmogorov–Smirnov statistics and sequential analysis. The probability of absorption and first-passage times are given in terms of a generating function which depends on the boundary only and can be computed readily. Absorption is certain or not as the asymptotic slope of the boundary is greater or less than the expected increase of the process in unit time. The case of the linear boundary is considered in detail.